package cn.iocoder.springboot.lab12.mybatis.dataobject;


import org.apache.ibatis.type.MappedJdbcTypes;

import java.io.InputStream;
import java.nio.charset.StandardCharsets;

public class LobDO {

    private String c1;

    private String c2;

    private byte[] c2b;

    private InputStream is ;

    public String getC1() {
        return c1;
    }

    public void setC1(String c1) {
        this.c1 = c1;
    }

    public String getC2() {
        return c2;
    }

    public void setC2(String c2) {
        this.c2 = c2;
    }

    public byte[] getC2b() {
        return c2b;
    }

    public void setC2b(byte[] c2b) {
        this.c2b = c2b;
    }

    public InputStream getIs() {
        return is;
    }

    public void setIs(InputStream is) {
        this.is = is;
    }

    @Override
    public String toString() {
        return "LobDTO{" +
                "c1='" + c1 + '\'' +
                ", c2='" + c2 + '\'' +
                ", c2b='" + (c2b == null ? null : new String(c2b, StandardCharsets.UTF_8)) + '\'' +
                '}';
    }
}
